feat(chat): add per-message destination mentions#113
Merged
Conversation
…1.0] Adds deterministic leading mention resolution, a keyboard-accessible composer picker and one-message chip, persisted requested-route metadata, and retry behavior that preserves the original destination.
…1.0] Covers canonical and friendly aliases, ambiguity, clean delivery, session precedence, unavailable fail-closed behavior, retry intent, and backward-compatible conversation decoding.
tcballard
force-pushed
the
codex/per-message-route-mentions
branch
from
July 24, 2026 11:38
971d60e to
4a5a42c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements per-message destination overrides for native Wayfinder Chat.
Adds:
@local,@hosted,@codex, canonical route, and unique friendly-alias resolutionScope
Included
Excluded
Product / Architecture Decisions
modelcontract:auto,prefer-local,prefer-hosted, or a configured canonical route name.User-Facing Contract
Native Chat
@at the beginning of a draft opens compact destination suggestions.<destination> · this messagewhile leaving the session destination visible.Gateway Request
The clean prompt is sent through the existing OpenAI-compatible chat request with the selected destination's canonical value in
model.Persistence
User turns optionally encode
requestedGatewayRouteNameandrequestedDestinationTitle. Missing fields decode asnil.CLI / JSON / Exit Codes
No CLI, public gateway JSON schema, or process exit-code behavior changes.
Verification
Ran
swift test --package-path macos/WayfinderMacCovered
Review Path
ChatDestinationMentionResolver.swiftfor deterministic matching and ambiguity behaviorAppState.swiftandChatModels.swiftfor precedence, persistence, and retry semanticsChatComposerView.swiftand routing popover changes for native interaction and accessibilityChatDestinationMentionTests.swiftfor boundary and regression coverageNotes For Reviewer